//
//  DDCartSet.m
//  Dingdong
//
//  Created by 程强 on 16/12/12.
//  Copyright © 2016年 程强. All rights reserved.
//

#import "DDCartSet.h"

@implementation DDCartSet
+ (NSDictionary *)modelCustomPropertyMapper {
    return @{@"cartAry" : @"data"};
}
+ (NSDictionary *)modelContainerPropertyGenericClass {
    return @{@"cartAry" : [DDCartObj class] };
}
@end


@implementation DDCartObj
+ (NSDictionary *)modelContainerPropertyGenericClass {
    return @{@"cartList" : [DDCartGoodsObj class],
             @"activity":[DDActivityObj class]};
}
- (instancetype)init
{
    self = [super init];
    if (self) {
        self.is_check = @1;
        self.edit_is_check = @0;
    }
    return self;
}
@end

@implementation DDCartGoodsObj
- (instancetype)init
{
    self = [super init];
    if (self) {
        self.edit_is_check = @0;
    }
    return self;
}
@end

@implementation DDActivityObj
+ (NSDictionary *)modelCustomPropertyMapper {
    return @{@"activity_description" : @"description"};
}
@end
